file base name and extension python

36

from pathlib import Path

Path('/root/dir/sub/file.ext').stem

Comments

Submit
0 Comments